package MethodGraph;

//////////////////////////////////////////////////////////////////////////
//// MethodGraphEdge
/**

@author Ivan Jeukens
@version v 0.1 27/06/2002
*/
public class MethodGraphEdge {

    public MethodGraphEdge(MethodGraphNode from, MethodGraphNode to, 
            boolean dead) {
        _to = to;
        _from = from;
        _isBack = false;
        _sdfDead = dead;
    }

    ///////////////////////////////////////////////////////////////////
    ////                         public methods                    ////

    public void setIsBack(boolean value) {
        _isBack = value;
    }
    
    public boolean isBack() {
        return _isBack;
    }
    
    public MethodGraphNode getTo() {
        return _to;
    }
    
    public MethodGraphNode getFrom() {
        return _from;
    }
    
    public boolean isSDFDead() {
        return _sdfDead;
    }
    
    ///////////////////////////////////////////////////////////////////
    ////                        private methods                    //// 

    ///////////////////////////////////////////////////////////////////
    ////                        private variables                  ////

    private MethodGraphNode _to;
    private MethodGraphNode _from;

    private boolean _isBack;
    private boolean _sdfDead;
}
